/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cageballcommon.messages;

import java.util.Collection;

/**
 *
 * @author kanonas
 */
public class InitTeam {

    private String teamName;
    private transient int id;
    private Collection<InitPlayer> players;
    
    public InitTeam() {
    }

    public InitTeam(InitTeam team) {
        this.id = team.getId();
        this.teamName = team.getTeamName();
        this.players = team.getPlayers();
    }

    public InitTeam(String teamName, Collection<InitPlayer> players) {
        this.teamName = teamName;
        this.players = players;
    }
    
    public Collection<InitPlayer> getPlayers() {
        return players;
    }

    public void setPlayers(Collection<InitPlayer> players) {
        this.players = players;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }
    
    public String getTeamName() {
        return teamName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
